{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nvar _excluded = [\"actions\", \"anchorEl\", \"children\", \"component\", \"components\", \"componentsProps\", \"keepMounted\", \"listboxId\", \"onClose\", \"open\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { HTMLElementType, refType } from '@mui/utils';\nimport MenuUnstyledContext from './MenuUnstyledContext';\nimport { getMenuUnstyledUtilityClass } from './menuUnstyledClasses';\nimport useMenu from './useMenu';\nimport composeClasses from '../composeClasses';\nimport PopperUnstyled from '../PopperUnstyled';\nimport useSlotProps from '../utils/useSlotProps';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getUtilityClasses(ownerState) {\n  var open = ownerState.open;\n  var slots = {\n    root: ['root', open && 'expanded'],\n    listbox: ['listbox', open && 'expanded']\n  };\n  return composeClasses(slots, getMenuUnstyledUtilityClass, {});\n}\n/**\n *\n * Demos:\n *\n * - [Unstyled Menu](https://mui.com/base/react-menu/)\n *\n * API:\n *\n * - [MenuUnstyled API](https://mui.com/base/api/menu-unstyled/)\n */\n\nvar MenuUnstyled = /*#__PURE__*/React.forwardRef(function MenuUnstyled(props, forwardedRef) {\n  var _ref, _components$Listbox;\n  var actions = props.actions,\n    anchorEl = props.anchorEl,\n    children = props.children,\n    component = props.component,\n    _props$components = props.components,\n    components = _props$components === void 0 ? {} : _props$components,\n    _props$componentsProp = props.componentsProps,\n    componentsProps = _props$componentsProp === void 0 ? {} : _props$componentsProp,\n    _props$keepMounted = props.keepMounted,\n    keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted,\n    listboxId = props.listboxId,\n    onClose = props.onClose,\n    _props$open = props.open,\n    open = _props$open === void 0 ? false : _props$open,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  var _useMenu = useMenu({\n      open: open,\n      onClose: onClose,\n      listboxId: listboxId\n    }),\n    registerItem = _useMenu.registerItem,\n    unregisterItem = _useMenu.unregisterItem,\n    getListboxProps = _useMenu.getListboxProps,\n    getItemProps = _useMenu.getItemProps,\n    getItemState = _useMenu.getItemState,\n    highlightFirstItem = _useMenu.highlightFirstItem,\n    highlightLastItem = _useMenu.highlightLastItem;\n  React.useImperativeHandle(actions, function () {\n    return {\n      highlightFirstItem: highlightFirstItem,\n      highlightLastItem: highlightLastItem\n    };\n  }, [highlightFirstItem, highlightLastItem]);\n  var ownerState = _extends({}, props, {\n    open: open\n  });\n  var classes = getUtilityClasses(ownerState);\n  var Root = (_ref = component != null ? component : components.Root) != null ? _ref : PopperUnstyled;\n  var rootProps = useSlotProps({\n    elementType: Root,\n    externalForwardedProps: other,\n    externalSlotProps: componentsProps.root,\n    additionalProps: {\n      anchorEl: anchorEl,\n      open: open,\n      keepMounted: keepMounted,\n      role: undefined,\n      ref: forwardedRef\n    },\n    className: classes.root,\n    ownerState: ownerState\n  });\n  var Listbox = (_components$Listbox = components.Listbox) != null ? _components$Listbox : 'ul';\n  var listboxProps = useSlotProps({\n    elementType: Listbox,\n    getSlotProps: getListboxProps,\n    externalSlotProps: componentsProps.listbox,\n    ownerState: ownerState,\n    className: classes.listbox\n  });\n  var contextValue = {\n    registerItem: registerItem,\n    unregisterItem: unregisterItem,\n    getItemState: getItemState,\n    getItemProps: getItemProps,\n    open: open\n  };\n  return /*#__PURE__*/_jsx(Root, _extends({}, rootProps, {\n    children: /*#__PURE__*/_jsx(Listbox, _extends({}, listboxProps, {\n      children: /*#__PURE__*/_jsx(MenuUnstyledContext.Provider, {\n        value: contextValue,\n        children: children\n      })\n    }))\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? MenuUnstyled.propTypes\n/* remove-proptypes */ = {\n  // ----------------------------- Warning --------------------------------\n  // | These PropTypes are generated from the TypeScript type definitions |\n  // |     To update them edit TypeScript types and run \"yarn proptypes\"  |\n  // ----------------------------------------------------------------------\n\n  /**\n   * A ref with imperative actions.\n   * It allows to select the first or last menu item.\n   */\n  actions: refType,\n  /**\n   * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n   * or a function that returns either.\n   * It's used to set the position of the popper.\n   */\n  anchorEl: PropTypes\n  /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]),\n  /**\n   * @ignore\n   */\n  children: PropTypes.node,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * The components used for each slot inside the Menu.\n   * Either a string to use a HTML element or a component.\n   * @default {}\n   */\n  components: PropTypes.shape({\n    Listbox: PropTypes.elementType,\n    Root: PropTypes.elementType\n  }),\n  /**\n   * The props used for each slot inside the Menu.\n   * @default {}\n   */\n  componentsProps: PropTypes.shape({\n    listbox: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n    root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n  }),\n  /**\n   * Always keep the menu in the DOM.\n   * This prop can be useful in SEO situation or when you want to maximize the responsiveness of the Menu.\n   *\n   * @default false\n   */\n  keepMounted: PropTypes.bool,\n  /**\n   * @ignore\n   */\n  listboxId: PropTypes.string,\n  /**\n   * Triggered when focus leaves the menu and the menu should close.\n   */\n  onClose: PropTypes.func,\n  /**\n   * Controls whether the menu is displayed.\n   * @default false\n   */\n  open: PropTypes.bool\n} : void 0;\nexport default MenuUnstyled;","map":{"version":3,"names":["_extends","_objectWithoutPropertiesLoose","_excluded","React","PropTypes","HTMLElementType","refType","MenuUnstyledContext","getMenuUnstyledUtilityClass","useMenu","composeClasses","PopperUnstyled","useSlotProps","jsx","_jsx","getUtilityClasses","ownerState","open","slots","root","listbox","MenuUnstyled","forwardRef","props","forwardedRef","_ref","_components$Listbox","actions","anchorEl","children","component","components","componentsProps","keepMounted","listboxId","onClose","other","registerItem","unregisterItem","getListboxProps","getItemProps","getItemState","highlightFirstItem","highlightLastItem","useImperativeHandle","classes","Root","rootProps","elementType","externalForwardedProps","externalSlotProps","additionalProps","role","undefined","ref","className","Listbox","listboxProps","getSlotProps","contextValue","Provider","value","process","env","NODE_ENV","propTypes","oneOfType","object","func","node","shape","bool","string"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@mui/base/MenuUnstyled/MenuUnstyled.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"actions\", \"anchorEl\", \"children\", \"component\", \"components\", \"componentsProps\", \"keepMounted\", \"listboxId\", \"onClose\", \"open\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { HTMLElementType, refType } from '@mui/utils';\nimport MenuUnstyledContext from './MenuUnstyledContext';\nimport { getMenuUnstyledUtilityClass } from './menuUnstyledClasses';\nimport useMenu from './useMenu';\nimport composeClasses from '../composeClasses';\nimport PopperUnstyled from '../PopperUnstyled';\nimport useSlotProps from '../utils/useSlotProps';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n\nfunction getUtilityClasses(ownerState) {\n  const {\n    open\n  } = ownerState;\n  const slots = {\n    root: ['root', open && 'expanded'],\n    listbox: ['listbox', open && 'expanded']\n  };\n  return composeClasses(slots, getMenuUnstyledUtilityClass, {});\n}\n/**\n *\n * Demos:\n *\n * - [Unstyled Menu](https://mui.com/base/react-menu/)\n *\n * API:\n *\n * - [MenuUnstyled API](https://mui.com/base/api/menu-unstyled/)\n */\n\n\nconst MenuUnstyled = /*#__PURE__*/React.forwardRef(function MenuUnstyled(props, forwardedRef) {\n  var _ref, _components$Listbox;\n\n  const {\n    actions,\n    anchorEl,\n    children,\n    component,\n    components = {},\n    componentsProps = {},\n    keepMounted = false,\n    listboxId,\n    onClose,\n    open = false\n  } = props,\n        other = _objectWithoutPropertiesLoose(props, _excluded);\n\n  const {\n    registerItem,\n    unregisterItem,\n    getListboxProps,\n    getItemProps,\n    getItemState,\n    highlightFirstItem,\n    highlightLastItem\n  } = useMenu({\n    open,\n    onClose,\n    listboxId\n  });\n  React.useImperativeHandle(actions, () => ({\n    highlightFirstItem,\n    highlightLastItem\n  }), [highlightFirstItem, highlightLastItem]);\n\n  const ownerState = _extends({}, props, {\n    open\n  });\n\n  const classes = getUtilityClasses(ownerState);\n  const Root = (_ref = component != null ? component : components.Root) != null ? _ref : PopperUnstyled;\n  const rootProps = useSlotProps({\n    elementType: Root,\n    externalForwardedProps: other,\n    externalSlotProps: componentsProps.root,\n    additionalProps: {\n      anchorEl,\n      open,\n      keepMounted,\n      role: undefined,\n      ref: forwardedRef\n    },\n    className: classes.root,\n    ownerState\n  });\n  const Listbox = (_components$Listbox = components.Listbox) != null ? _components$Listbox : 'ul';\n  const listboxProps = useSlotProps({\n    elementType: Listbox,\n    getSlotProps: getListboxProps,\n    externalSlotProps: componentsProps.listbox,\n    ownerState,\n    className: classes.listbox\n  });\n  const contextValue = {\n    registerItem,\n    unregisterItem,\n    getItemState,\n    getItemProps,\n    open\n  };\n  return /*#__PURE__*/_jsx(Root, _extends({}, rootProps, {\n    children: /*#__PURE__*/_jsx(Listbox, _extends({}, listboxProps, {\n      children: /*#__PURE__*/_jsx(MenuUnstyledContext.Provider, {\n        value: contextValue,\n        children: children\n      })\n    }))\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? MenuUnstyled.propTypes\n/* remove-proptypes */\n= {\n  // ----------------------------- Warning --------------------------------\n  // | These PropTypes are generated from the TypeScript type definitions |\n  // |     To update them edit TypeScript types and run \"yarn proptypes\"  |\n  // ----------------------------------------------------------------------\n\n  /**\n   * A ref with imperative actions.\n   * It allows to select the first or last menu item.\n   */\n  actions: refType,\n\n  /**\n   * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n   * or a function that returns either.\n   * It's used to set the position of the popper.\n   */\n  anchorEl: PropTypes\n  /* @typescript-to-proptypes-ignore */\n  .oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]),\n\n  /**\n   * @ignore\n   */\n  children: PropTypes.node,\n\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n\n  /**\n   * The components used for each slot inside the Menu.\n   * Either a string to use a HTML element or a component.\n   * @default {}\n   */\n  components: PropTypes.shape({\n    Listbox: PropTypes.elementType,\n    Root: PropTypes.elementType\n  }),\n\n  /**\n   * The props used for each slot inside the Menu.\n   * @default {}\n   */\n  componentsProps: PropTypes.shape({\n    listbox: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n    root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n  }),\n\n  /**\n   * Always keep the menu in the DOM.\n   * This prop can be useful in SEO situation or when you want to maximize the responsiveness of the Menu.\n   *\n   * @default false\n   */\n  keepMounted: PropTypes.bool,\n\n  /**\n   * @ignore\n   */\n  listboxId: PropTypes.string,\n\n  /**\n   * Triggered when focus leaves the menu and the menu should close.\n   */\n  onClose: PropTypes.func,\n\n  /**\n   * Controls whether the menu is displayed.\n   * @default false\n   */\n  open: PropTypes.bool\n} : void 0;\nexport default MenuUnstyled;"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,6BAA6B,MAAM,yDAAyD;AACnG,IAAMC,SAAS,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,CAAC;AAClJ,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,eAAe,EAAEC,OAAO,QAAQ,YAAY;AACrD,OAAOC,mBAAmB,MAAM,uBAAuB;AACvD,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,OAAOC,OAAO,MAAM,WAAW;AAC/B,OAAOC,cAAc,MAAM,mBAAmB;AAC9C,OAAOC,cAAc,MAAM,mBAAmB;AAC9C,OAAOC,YAAY,MAAM,uBAAuB;AAChD,SAASC,GAA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